package lambda;

import java.util.Comparator;
import java.util.function.Consumer;

/**
 * @author： pang-yun
 * @date： 2021-10-26 13:22
 * 功能目的 ：用于
 */

public class Test {
    public static void main(String[] args) {
     Consumer<String> consumer = System.out::println;
     consumer.accept("魂魄毅兮为鬼雄！");

    Comparator<Integer> b = (x, y)-> Integer.compare(x,y);
        System.out.println(b.compare(1,2));
        TRFunc<Long,Float> func = (a,c)-> Float.valueOf(a+c);
        System.out.println(func.getValue(1l,2l));


        TRFunc<Integer,String> c= (x,y)->{
          return "haha";
        };
        System.out.println(c.getValue(1, 1));


    }
}
